package cn.wsalix.templet.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.anlaser.service.impl.SimpleServiceImpl;
import cn.anlaser.utils.SearchFilter;
import cn.wsalix.templet.entity.SiteInfo;
import cn.wsalix.templet.form.SiteInfoForm;
import cn.wsalix.templet.repository.SiteInfoRepository;
import cn.wsalix.templet.service.SiteInfoService;

@Service("siteInfoService")
@Transactional(readOnly = true)
public class SiteInfoServiceImpl extends
		SimpleServiceImpl<SiteInfoForm,SiteInfoRepository, SiteInfo> implements SiteInfoService {
	@Autowired
	private SiteInfoRepository siteInfpRepository;

	@Override
	public SiteInfoRepository getRepository() {
		return siteInfpRepository;
	}

	@Override
	public String module() {
		return "/templet/site_info";
	}

	@Override
	public Class<SiteInfo> getEntityClazz() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean buildSite(Long siteId) {
		SiteInfo SiteInfo=siteInfpRepository.findOne(siteId);
		
		return false;
	}

	@Override
	public Map<String, SearchFilter> buildByForm(SiteInfoForm form) {
		// TODO Auto-generated method stub
		return null;
	}

}
